package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title		:DRGVersion.java
 * @description	:DRGs版本管理
 * @author		:fulianxia
 * @date		:2015年4月2日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014 
 */
@Entity
@Table(name="T_DRGVERSION", schema = "DRGs")
public class DRGVersion extends KoalaLegacyEntity {

	private static final long serialVersionUID = 6165557133209999388L;

	//版本代码
	@Id
	@Column(name = "VER_CODE", nullable = false)
	private String verCode;
	
	//版本描述
	@Column(name = "VER_DESC")
	private String verDesc;
	
	//是否有效
	@Column(name = "VER_VALID")
	private String verValid;
	
	//类型
	@Column(name = "VER_TYPE")
	private String verType;
	
	//ICD9版本
	@Column(name = "ICD9_VERSION")
	private String icd9Version;
	
	//ICD10版本
	@Column(name = "ICD10_VERSION")
	private String icd10Version;
	
	//地区代码
	@Column(name = "REGION_CODE")
	private String regionCode;
	
	//年度
	@Column(name = "YEAR_TIME")
	private String yearTime;

	/**
	 * @param verCode
	 * @param verDesc
	 * @param verValid
	 * @param verType
	 * @param icd9Version
	 * @param icd10Version
	 * @param regionCode
	 * @param yearTime
	 */
	public DRGVersion(String verCode, String verDesc, String verValid,
			String verType, String icd9Version, String icd10Version,
			String regionCode, String yearTime) {
		super();
		this.verCode = verCode;
		this.verDesc = verDesc;
		this.verValid = verValid;
		this.verType = verType;
		this.icd9Version = icd9Version;
		this.icd10Version = icd10Version;
		this.regionCode = regionCode;
		this.yearTime = yearTime;
	}

	/**
	 * 
	 */
	public DRGVersion() {
		super();
	}

	public String getVerCode() {
		return verCode;
	}

	public void setVerCode(String verCode) {
		this.verCode = verCode;
	}

	public String getVerDesc() {
		return verDesc;
	}

	public void setVerDesc(String verDesc) {
		this.verDesc = verDesc;
	}

	public String getVerValid() {
		return verValid;
	}

	public void setVerValid(String verValid) {
		this.verValid = verValid;
	}

	public String getVerType() {
		return verType;
	}

	public void setVerType(String verType) {
		this.verType = verType;
	}

	public String getIcd9Version() {
		return icd9Version;
	}

	public void setIcd9Version(String icd9Version) {
		this.icd9Version = icd9Version;
	}

	public String getIcd10Version() {
		return icd10Version;
	}

	public void setIcd10Version(String icd10Version) {
		this.icd10Version = icd10Version;
	}

	public String getRegionCode() {
		return regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}

	public String getYearTime() {
		return yearTime;
	}

	public void setYearTime(String yearTime) {
		this.yearTime = yearTime;
	}

	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return verCode;
	}

	@Override
	public String[] businessKeys() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setId(String verCode) {
		this.verCode = verCode;
	}

}
